<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include  file="/jsps/common/taglibs.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<script type="text/javascript">
	    
	    //检测表单信息
	    function check_infos(){
	        
	        with(document.content_form){
	            
	            //商品编号不能为空且为数字
	            if(goods_no.value==""||isNaN(goods_no.value)){
	                alert("商品编号不能为空,且必须为数字编号,请检查!");
	                return false;
	            }
	            //商品价格不能为空且为数字
	            if((goods_price.value=="")||(isNaN(goods_price.value))){
	                alert("商品价格不能为空,且必须为数字,请检查!");
	                return false;
	            }
	            //商品数量不能为空，且必须是整数
	            if((goods_num.value=="")||isNaN(goods_num.value)||(goods_num.value.indexOf(".")!=-1)){
	                alert("商品数量不能为空,且必须为整数!");
	                return false;
	            }
	            
	            //检查通过,提交表单
	            document.forms[0].submit();
	            
	        }
	        
	    }
	    
	    //返回上一页
	    function go_back(){
	        history.go(-1);
	    }
	    
	</script>
	
  </head>
  
  <body>
      <div class="title">
          <h3>订单详细信息</h3>
          <hr/>
      </div>
     <div class="wrapper">
          <form class="content_form" name="content_form" action="<c:url value="indentMgr"/>" method="post">
              <input type="hidden" name="act" value="updateGoodInfo"/>
              <div class="wrapper_div">
                  <span>订单编号:</span>
                  <input name="indent_no" readonly="readonly" value="${indentOfGood.orderNo}"/>
              </div>
              <div class="wrapper_div">
                  <span>商品编号:</span>
                  <input name="goods_no" value="${indentOfGood.goodsNo}"/>
              </div>
              <div class="wrapper_div">
                  <span>商品单价:</span>
                  <input name="goods_price" value="${indentOfGood.goodsPrice}"/>
              </div>
              <div class="wrapper_div">
                  <span>商品数量:</span>
                  <input name="goods_num" value="${indentOfGood.goodNum}"/>
              </div>
              <div class="wrapper_div">
                  <button onclick="go_back();">返 回</button>
                  <button onclick="check_infos();">修 改</button>
              </div>
          </form>
      </div>
  </body>
</html>
